package com.yaoxun.bored.model.sys.authority;

import java.util.List;

public class Authority {

	private Integer id;
	
	private Integer pid;
	
	private Integer type; //类型
	
	private String name;
	
	private List<Authority> authorities;
	
	private Integer leaf; //是否叶子

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Authority> getAuthorities() {
		return authorities;
	}

	public void setAuthorities(List<Authority> authorities) {
		this.authorities = authorities;
	}

	public Integer getLeaf() {
		return leaf;
	}

	public void setLeaf(Integer leaf) {
		this.leaf = leaf;
	}

	@Override
	public String toString() {
		return "Authority [id=" + id + ", pid=" + pid + ", type=" + type + ", name=" + name + ", authorities="
				+ authorities + ", leaf=" + leaf + "]";
	}
	
}
